# Contributor: Kasper K <kasperkantz@outlook.com>
maintainer="Krassy Boykinov <kboykinov@teamcentrixx.com>"
pkgname=ideviceinstaller
pkgver=1.1.1
pkgrel=4
pkgdesc="Manage apps of iOS devices"
url="https://libimobiledevice.org"
arch="all"
license="LGPL-2.1-or-later"
makedepends="libimobiledevice-dev libzip-dev"
subpackages="$pkgname-doc"
source="https://github.com/libimobiledevice/ideviceinstaller/releases/download/$pkgver/ideviceinstaller-$pkgver.tar.bz2
	deprecated-function.patch
	"

prepare() {
	default_prepare

	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
fd117a5745890746237f381c9fe0e01cf8ea06d9c2341da397c52e5ebc0e058c73797e349a0a81b2777f5333dafc32e5c32e9e2c99ee70a864be159fe73e9568  ideviceinstaller-1.1.1.tar.bz2
739fccd558f45f59c2fbf35a2130d660034c66bf675b26242df2f3f7a0f2d53a385129ec12a12d435ab8685c56eaced58c59a470615130d2a638cc879796c930  deprecated-function.patch
"
